
#include "Component/LRG_PlayerControllerComponent.h"

#include "LineReplicationGraphSetting.h"
#include "Component/LRG_DebugComponent.h"

void ULRG_PlayerControllerComponent::BeginPlay()
{
	Super::BeginPlay();

	APlayerController* PC = Cast<APlayerController>(GetOwner());
	if (PC && PC->HasAuthority())
	{
		if (auto Setting = ULineReplicationGraphSetting::Get() )
		{
			ULRG_DebugComponent* DebugComponent = NewObject<ULRG_DebugComponent>(PC);
			DebugComponent->RegisterComponent();
		}
	}
}
